package com.yitong.base.dao.api;

import java.io.IOException;
import java.util.List;

import javax.servlet.http.HttpServletRequest;

import com.yitong.base.domain.Message;
import com.yitong.profile.domain.TabRight;


public interface Login {
	/**
	 * 将从其他平台获得的数据转为message对象
	 * @param map
	 * @return
	 */
	@SuppressWarnings("rawtypes")
	public Message jsonStrToMessageMap(String jsonStr);
	@SuppressWarnings("rawtypes")
	public Message jsonStrToMessageTabUser(String jsonStr);
	@SuppressWarnings("rawtypes")
	public Message jsonStrToMessageTabRight(String jsonStr);
	
	public List<TabRight> getRightSub(int userId, int rightId, HttpServletRequest request)
	throws IOException;
	@SuppressWarnings("rawtypes")
	public Message jsonStrToMessageList(String jsonStr);
	
	/**
	 * 根据登录用户的组织Id  获取该组织下所有用户
	 * @param orgId
	 * @return
	 * @throws IOException
	 */
	public List<String> getAllUserListByOrgId(int orgId) throws IOException;
}
